package com.example.moudlec.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.moudlec.entity.Exeorder;
import com.example.moudlec.entity.SelOrderId;
import com.example.moudlec.service.ExeorderService;
import com.mycloud.api.pojo.Quality_control;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@SuppressWarnings("all")
@RestController
@RequestMapping("/moudlec/exeorder")
public class ExeorderController {

    @Autowired
    ExeorderService service;

    @RequestMapping("/selList")
    public IPage<Exeorder> selList(Long pageNum, Long pageSize) {
        return service.selList(pageNum, pageSize);
    }

    @RequestMapping("/selproId")///moudlec/exeorder/selproId
    public List<Integer> selproId(@RequestParam("fileId") Long fileId) {
        return service.selproId(fileId);
    }

    @RequestMapping("/selId")
    public List<SelOrderId> selId(Long fileId) {
        return service.selId(fileId);
    }


}
